package com.topnav.mc.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.topnav.mc.admin.entity.Role;
import com.topnav.mc.admin.entity.bean.RoleBean;
import com.topnav.mc.admin.entity.param.RoleParam;
import com.topnav.mc.base.mc.IMcService;
import org.apache.ibatis.annotations.Param;

public interface IRoleService extends IMcService<Role, RoleBean, RoleParam> {
    /**
     * 根据人员和单位查询 级别最高的 角色
     * @param userId
     * @param orgId
     * @return
     */
    Role getOneHighLeveByUserOrgRole(@Param("userId") Long userId, @Param("orgId") Long orgId);

    /**
     * 从用户角色表查询权限级别最
     * @param userId
     * @param orgId
     * @return
     */
    Role getOneHighLevelByUserRole(@Param("userId") Long userId);
}
